<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>个人博客管理后台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/JQuery.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.browser.min.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.yiiactiveform.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl;?>/js/base.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl;?>/js/tool.js"></script>

    <!-- Le styles -->
    <link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/application.min.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/favicon.ico">
    <link rel="apple-touch-icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="72x72" href="<?php echo Yii::app()->request->baseUrl; ?>/images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="<?php echo Yii::app()->request->baseUrl; ?>/images/apple-touch-icon-114x114.png">

    <link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/admin/base.css" rel="stylesheet">
</head>

<body>
<?php if($this->getAction()->id !== 'login'):?>
<div class="navbar">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="<?php echo $this->createAbsoluteUrl('//'); ?>">博客后台管理中心</a>
            <ul class="nav menu-nav">
                <li <?php if($this->getId() == 'default') echo 'class="active"'?>><a href="<?php echo $this->createUrl('default/index');?>">首页</a></li>
                <li <?php if(in_array($this->getId(), array('nav'))) echo 'class="active"'?>><a href="<?php echo $this->createUrl('nav/index')?>">内容</a></li>
                <li><a href="">评论</a></li>
                <li <?php if(in_array($this->getId(), array('system', 'admin'))) echo 'class="active"'?>><a href="<?php echo $this->createUrl('admin/index')?>">系统</a></li>
            </ul>
            <p>
                <a href="" class="admin-name">欢迎，<?php echo Yii::app()->user->name;?></a>
                <a href="<?php echo $this->createUrl('public/logout');?>" class="logout">退　出</a></li>
            </p>
        </div>
    </div>
</div>
<?php endif;?>

<?php echo $content; ?>

<footer class="footer">
    <div class="container">
        ©2014-2015 本博客由 肖永标 版权所有
    </div>
</footer>

</body>
</html>